<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="com.blockchain.console.servlets.user.UserGjrzSh"%>
<%@page import="com.blockchain.console.servlets.user.UserGjrz"%>
<%@page import="com.sun.org.apache.bcel.internal.generic.ISUB"%>
<%@page import="com.blockchain.console.servlets.user.UserLock"%>
<%@page import="com.blockchain.console.servlets.user.UpdateUser"%>
<%@page import="com.blockchain.common.enums.IsPass"%>
<%@page import="com.blockchain.console.servlets.user.UserList"%>
<%@page import="com.blockchain.console.service.user.entity.User"%>
<%@page import="com.blockchain.console.service.user.UserManage"%>
<html>
<head>
<%@include file="/WEB-INF/include/meta.jsp"%>
<%@include file="/WEB-INF/include/style.jsp"%>
</head>
<%
CURRENT_CATEGORY="HHGL";
CURRENT_SUB_CATEGORY="GJSMRZ";
PagingResult<User> users = (PagingResult<User>)request.getAttribute("users");
User[] userArray = users.getItems();
%>
<body>
	<%@include file="/WEB-INF/include/header.jsp"%>
	<div class="w_main">
		<div class="main clearfix">
			<div class="wrap">
			<form action="<%=controller.getURI(request, UserGjrz.class) %>" method="post">
				<div class="r_main">
					<div class="home_main">
						<div class="box box1 mb15">
							<div class="atil">
                    		<h3>高级实名认证</h3>
                  			</div>
						</div>
						<div class="box box1 mb15">
							<div class="clear"></div>
							<div class="con">
							<div class="admin_input admin_pb">
                                <p>姓名：<input type="text" name="name" value="<%StringHelper.filterHTML(out, request.getParameter("name"));%>" class="yhgl_input mr5" /></p>
                                <p>证件号：<input type="text" name="zjh" value="<%StringHelper.filterHTML(out, request.getParameter("zjh"));%>" class="yhgl_input mr5" /></p>
                                <p>手机：<input type="text" name="sjh" value="<%StringHelper.filterHTML(out, request.getParameter("sjh"));%>" class="yhgl_input" /></p>
                       	    	<p>时间：<input type="text" name="start" readonly="readonly" id="datepicker1" class="yhgl_input date" />
                                <span class="pr10">至</span><input readonly="readonly" type="text" name="end" id="datepicker2" class="yhgl_input date" /></p>
                                <p>高级认证：
                                	<select name="sftgjrz" class="yhgl_sel">
                                	    <option value="">待审核</option>
	                                  	<%
	                                  		for (IsPass is : IsPass.values()) {
	                                  	%>
											<option value="<%=is.name()%>" <%if (is.name().equals(request.getParameter("sftgjrz"))) {%> selected="selected" <%}%>><%=is.getName()%></option>
										<%
											}
										%>
                                  </select>
                                  </p>		
										
						 		<div class="mt10">
						 			<input name="" type="submit" class="btn2 mr10" value="搜索" />
						 			<div class="clear"></div>
								</div>
						    </div>
						</div>
						</div>
						<div>
							<table width="100%" border="0" cellspacing="0" cellpadding="3" class="yhgl_table tc">
						<tr class="hsbg">
                          <td>序号</td>
                          <td>姓名</td>
                          <td>手机</td>
                          <td>证件号</td>
                          <td>高级认证</td>
                          <td>认证时间</td>
                          <td>操作</td>
                        </tr>
						<%
                        if (userArray != null) {for (int i =0;i<userArray.length;i++){User user=userArray[i];if (user == null) {continue;}
                        %>
                        <tr class="dhsbg">
                          <td><%=i+1%></td>
                          <td><%StringHelper.filterHTML(out, user.name);%></td>
                          <td><%StringHelper.filterHTML(out, user.iphone);%></td>
                          <td><%StringHelper.filterHTML(out, user.zjhm);%></td>
                          <td><%if(user.sftggjrz==null){%>待审核<%}else{out.print(user.sftggjrz.getName());}%></td>
                          <td><%=TimestampParser.format(user.rzsj)%></td>
                          <td>
                          <%if (blockchainSession.isAccessableResource(UserGjrzSh.class)) {%>
                          	<span class="blue"><a target="_blank" href="<%=controller.getURI(request,UserGjrzSh.class)%>?userid=<%=user.userId%>" class="mr10">审核</a></span>
                          <%}%>
                          </td>
						</tr>
								<%}}%>
							</table>
						</div>
							<%AbstractConsoleServlet.rendPagingResult(out, users); %>
						<div class="box2 clearfix"></div>
					</div>
				</div>
				</form>
			</div>
			<%@include file="/WEB-INF/include/left.jsp" %>
		</div>
	</div>
	<%@include file="/WEB-INF/include/footer.jsp"%>
	<%@include file="/WEB-INF/include/script.jsp"%>
	<%@include file="/WEB-INF/include/datepicker.jsp"%>
	<script type="text/javascript">
		$(function() {
			$("#datepicker1").datepicker({inline: true});
		    $('#datepicker1').datepicker('option', {dateFormat:'yy-mm-dd'});
		    $("#datepicker2").datepicker({inline: true});
		    $('#datepicker2').datepicker('option', {dateFormat:'yy-mm-dd'});
		    $("#datepicker1").datepicker("setDate", "<%StringHelper.filterHTML(out, request.getParameter("start"));%>");
		    $("#datepicker2").datepicker("setDate", "<%StringHelper.filterHTML(out, request.getParameter("end"));%>");
		});
		</script>
</body>
</html>